<?php
	class Logout extends CI_Controller
	{
		function index()
		{
			$this->load->helper('url');
			$this->session->unset_userdata('LoggedIn');
			$this->session->unset_userdata('UserId');
			$this->session->unset_userdata('admin');
			redirect('user/login');
		}
	}

?>